#include "namedpipe.hpp"

#include <iostream>
int main()
{
    NamedPipe fifo(comm_path, User);
    if (fifo.OpenToWrite())
    {
        while (true)
        {
            std::cout << "Please Enter: ";
            std::string message;
            std::getline(std::cin, message); // 用户输入
            fifo.WriteNamedPipe(message);
        }
    }

    return 0;
}
